<?php
namespace Common\Models;
use Common\BaseModel;
class Qcate extends BaseModel
{
    public $res;
    public $key;

    public function getSource()
    {
        return "f_qcate";
    }

    public function initialize()
    {
        parent::initialize();
    }


    /**
     * @return mixed查询出所有的问题订单
     */
    public function findlist(){
        $res=$this->find(
            array(
                "order"=>"sort ASC,id ASC"
            ));
        if($res){
            return $res->toarray();
        }else{
            return $res;
        }
    }


}
